Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Printing Extensions and Drivers /
Chapter 4 - Printing Messages / Printing Messages Reference
Printing Messages / PostScript Imaging Messages


GXPostScriptInitializePrinter

QuickDraw GX sends the GXPostScriptInitializePrinter message when the printer needs to be initialized. You can override the GXPostScriptInitializePrinter message to bring the printer to a known state after it has been restarted. Your override of the GXPostScriptInitializePrinter message must match the following formal declaration:

OSErr MyPostScriptInitializePrinter (void);
function result
An error code. The value noErr indicates that the operation was successful.
DESCRIPTION
QuickDraw GX sends the GXPostScriptInitializePrinter message when the GXPostScriptQueryPrinter message returns an indicator that a device needs to be initialized. The GXPostScriptQueryPrinter downloads any code necessary to initialize the printer to a known state.

The default implementation of this message downloads to the printer the latest version (version 7.0) of the LaserWriter PatchPrep procedure set, which defines a collection of PostScript operations that ensure compatibility between the LaserWriter driver and the printer. These operations then become "permanently" available on the printer, meaning that they are available until it is next restarted.

You can override this message if you want to modify the initialization process for the device. For example, you could modify the procedure set to add additional operations that are permanently available on the printer.

SPECIAL CONSIDERATIONS
Although you can totally override the GXPostScriptInitializePrinter message, you almost always forward it. Your implementation downloads any commands that you want permanently installed.

RESULT CODES
gxSegmentLoadFailedErrA required code segment could not be found,
or there was not enough memory to load it.
gxPrUserAbortErrThe user has canceled printing.
SEE ALSO
The GXPostScriptQueryPrinter message is described on page 4-101.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help